package com.feicheng.common.constant;

public class Constant {

    public static class HTTP {
        public static class REQUEST {
            public static final String QU = "?";
            public static final String EQ = "=";
            public static final String AD = "&";
        }
    }

    public static class WX {
        public static class PARAM {
            public static final String CODE = "code";
            public static final String APPID = "appid";
            public static final String SECRET = "secret";
            public static final String GRANT_TYPE = "grant_type";
            public static final String JS_CODE = "js_code";
            public static final String AUTHORIZATION_CODE = "authorization_code";
        }

        public static class RESPONSE {
            public static final String OPENID = "openid";
        }

    }

    public static class RESULT {
        public static final String SUCCESS = "SUCCESS";
        public static final String ERROR = "ERROR";
        public static final String FAIL = "FAIL";
        public static final String BIND_FAIL = "BIND_FAIL";
        public static final String LOGIN_FAIL = "LOGIN_FAIL";
        public static final String STATUS = "STATUS";
        public static final String MESSAGE = "MESSAGE";
        public static final String DATA = "DATA";
        public static final String CURRENT = "CURRENT";
        public static final String CURRENT_CLIENT = "CURRENT_CLIENT";


        public static class USER {
            public static final String USER = "user";
        }

        public static class ROLE {
            public static final String ROLE = "role";
            public static final String ROLES = "roles";
        }

        public static class PERMISSION {
            public static final String PERMISSIONS = "permissions";
        }

    }

    public static class LOGIN_TYPE {
        public static final String AP = "AP";
        public static final String TM = "TM";
        public static final String WX_Q_CODE = "WX_Q_CODE";
        public static final String WX_JSCODE = "WX_CODE";

    }

    public static class ENTITY {

        public static class USER {
            public static final String TABLE = "user";
            public static final String USER_ID = "user_id";
            public static final String ACCOUNT = "account";
            public static final String PASSWORD = "password";
            public static final String TEL = "tel";
            public static final String SEC_ID = "sec_id";
        }

        public static class ROLE {
            public static final String TABLE = "role";
            public static final String ROLE_ID = "role_id";
            public static final String ROLE_NAME = "role_name";
            public static final String STATU = "statu";
        }

        public static class PERMISSION {
            public static final String TABLE = "permission";
            public static final String PERMISSION_ID = "permission_id";
            public static final String P_ID = "p_id";
            public static final String STATU = "statu";
            public static final String NAME = "name";
            public static final String PATH = "path";
        }

        public static class CLIENT {
            public static final String TABLE = "client";
            public static final String OPEN_ID = "open_id";
        }

    }

}
